<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
	uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java"
	contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Home</title>
</head>
<body>

	<f:view>
		<h:form>

			<table style="width: 716px;">
				<tr>
					<td style="width: 655px;"></td>
					<td style="width: 181px;">
					<h:selectOneMenu
							id="languagesSelectID" value="#{languageBean.language}"
							valueChangeListener="#{languageBean.changeLanguage}"
							onchange="submit()">
						<f:selectItems value="#{languageBean.languages}" />
						</h:selectOneMenu>
						<br> 
						 <h:outputText value="#{homeBean.errorMsg}" /> <h:panelGrid
							border="0" columns="2" rendered="#{!homeBean.logged}">
							<h:outputText value="#{languageBean.username}" />
							<h:inputText value="#{homeBean.myUser.userName}" />
							<h:outputText value="#{languageBean.password}" />
							<h:inputSecret value="#{homeBean.myUser.password}" />
							<h:commandButton value="Sign Up"></h:commandButton>
							<h:commandButton value="Log In" action="#{homeBean.login}" />
						</h:panelGrid> 
						<h:panelGrid border="0" columns="1" rendered="#{homeBean.logged}">
							<h:outputText value="Username: #{homeBean.myUser.userName}" />
							<h:commandButton value="Log Out" action="#{homeBean.logout}" />
						</h:panelGrid></td>
				</tr>
				<tr>
					<td>Topics
						<hr>


					</td>
					<td></td>
				</tr>
			</table>








		</h:form>
	</f:view>
</body>
</html>